package com.lepan.ovgms.manages.dirver;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;

import com.lepan.ovgms.R;
import com.lepan.ovgms.manages.MyAdapter;

public class DirverAdapter extends MyAdapter {

    public DirverAdapter(Context context) {
        super(context);
    }

    @Override
    public RecyclerView.ViewHolder inflaterItem() {
        View itemApply = LayoutInflater.from(mContext).inflate(R.layout.item_dirver, null);

        DirverViewHolder mViewHolder = new DirverViewHolder(itemApply);

        itemApply.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
            }
        });

        return mViewHolder;
    }

    static class DirverViewHolder extends RecyclerView.ViewHolder {
        //        TextView mOrderTime;
        //        TextView mModels;
        //        TextView mDepartment;
        //        TextView mPrescription;
        public DirverViewHolder(View itemView) {
            super(itemView);
            itemView.findViewById(R.id.tv_license);
            itemView.findViewById(R.id.tv_group);
            itemView.findViewById(R.id.tv_name);
            itemView.findViewById(R.id.tv_phone);

        }
    }
}

